

import java.awt.Graphics;
import javax.swing.JPanel;
public class Wire extends  JPanel{
    
    public void paint(Graphics graphics){
        super.paint(graphics);
        graphics.drawLine(200, 120,400, 40);
        graphics.drawLine(200, 120,200, 360);
        graphics.drawLine(400, 40,400, 200);
        graphics.drawLine(200, 120,400, 200);
        graphics.drawLine(200, 360,400, 360);
        graphics.drawLine(400, 200,400, 360);
        graphics.drawLine(400, 200,600, 280);
        graphics.drawLine(400, 360,600, 360);
        graphics.drawLine(600, 280,600, 360);
      
        
        
    }
}

